#NoTrayIcon 
OnlineCheck:
ErrorLevel = 0
timers1 = %A_TickCount%
UrlDownloadToFile, http://www.google.com/blank.html, ping.txt

timers2 = %A_TickCount%
currentping := timers2 - timers1



if ErrorLevel {
FileAppend, "Error - Offline?", ping.txt
}else{
FileAppend, %currentping%, ping.txt
}




sleep 10000
goto, OnlineCheck
return



